Create a flat map